package com.zb.vo;

import com.zb.annotation.NumberPattern;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/4/2 0002
 **/
@Data
@ApiModel("工单备注")
public class WorkRemarkVo {
    @NotNull(message = "工单参数不能为空，至少选择一项")
    @NotEmpty(message = "工单参数不能为空，至少选择一项")
    @ApiModelProperty(value = "工单ID参数", required = true)
    private List<Long> workIds;

    @NotNull(message = "可见类型不能为空")
    @ApiModelProperty(value = "可见类型：0-公开，1-服务商，2-工程师，3-工单客户，4-工单客服", required = true, example = "[0]")
    private List<Integer> visitTypes;

    @NotBlank(message = "工单备注不能为空")
    @Length(max = 200, message = "工单备注长度限制200个字符")
    @ApiModelProperty(value = "工单备注", required = true)
    private String remark;

    @ApiModelProperty(value = "工单备注附件")
    private List<String> annexs;

}
